package org.jeecg.modules.crm.entity;

import java.io.Serializable;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * @Description: 客户联系人
 * @Author: jeecg-boot
 * @Date:   2023-06-03
 * @Version: V1.0
 */
@Data
@TableName("crm_contact")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="crm_contact对象", description="客户联系人")
public class CrmContact implements Serializable {
    private static final long serialVersionUID = 1L;

    /**主键*/
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;
    
    /**客户ID*/
    @ApiModelProperty(value = "客户ID")
    private String customerId;
    
    /**联系人姓名*/
    @Excel(name = "联系人姓名", width = 15)
    @ApiModelProperty(value = "联系人姓名")
    private String contactName;
    
    /**联系人职位*/
    @Excel(name = "职位", width = 15)
    @ApiModelProperty(value = "联系人职位")
    private String position;
    
    /**联系人电话*/
    @Excel(name = "电话", width = 15)
    @ApiModelProperty(value = "联系人电话")
    private String phone;
    
    /**联系人手机*/
    @Excel(name = "手机", width = 15)
    @ApiModelProperty(value = "联系人手机")
    private String mobile;
    
    /**联系人邮箱*/
    @Excel(name = "邮箱", width = 15)
    @ApiModelProperty(value = "联系人邮箱")
    private String email;
    
    /**是否主要联系人*/
    @Excel(name = "是否主要联系人", width = 15, dicCode = "yn")
    @ApiModelProperty(value = "是否主要联系人（0-否，1-是）")
    private Integer isPrimary;
    
    /**备注*/
    @Excel(name = "备注", width = 15)
    @ApiModelProperty(value = "备注")
    private String remark;
    
    /**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
    
    /**创建时间*/
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;
    
    /**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;
    
    /**更新时间*/
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

    /**
     * 租户ID
     */
    private Integer tenantId;
} 